<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Смена никнейма</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(90deg, #ff6a00 0%, #ee0979 100%);
            color: #fff;
        }

        .container {
            max-width: 600px;
            margin: 50px auto;
            padding: 20px;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 5px;
            color: #000;
            font-weight: bold;
        }

        input[type="text"] {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 16px;
        }

        button[type="submit"] {
            padding: 10px 20px;
            background-color: #000;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }

        button[type="submit"]:hover {
            background-color: #333;
        }

        nav {
            margin-top: 20px;
        }

        nav li {
            display: inline;
            margin-right: 10px;
        }

        nav li a {
            color: #fff;
            text-decoration: none;
        }

        nav li a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <div class="container">
        <form action="{{ route('main.update', ['resultGame' => $resultGames->id]) }}" method="post">
            @csrf 
            @method('patch')
            <div><p2 style="color: #000;">Введите новый никнейм:</p2></div>
            <div class="form-group">
                <label for="player_name"></label>
                <input type="text" name="player_name" class="form-control" id="player_name" placeholder="" value="{{ $resultGames->player_name }}">
            </div>
            <button type="submit">Сохранить</button> 
        </form>

        <nav>
            <li><a href="{{ route('main.index') }}" style="color: #000;">Back</a></li>
        </nav>
    </div>
</body>
</html>
